// src/components/todo-list-statistics.vue

<template>
  <div>我是todo-list-statistics组件：{{ user }}</div>
</template>

<script>
import { defineComponent } from "vue";

export default defineComponent({
    name: 'TodoListStatistics',
    inject: ['user'],
    created() {
        console.log(`注入的属性为：${this.user}`)
    }
})
</script>